package sk.ogame.brain.thing;

import sk.ogame.realm.exception.BaseException;
import sk.ogame.realm.service.WaitService;

import java.util.Date;
import java.util.Set;

/**
 * @author 支绍昆
 * 2023/2/28
 * 等待事务
 **/
public class WaitThing extends Thing {
    @Override
    public Set<Class<? extends BaseException>> couldSolve() {
        return null;
    }

    @Override
    public Class<? extends ThingService> getDealBeanType() {
        return WaitService.class;
    }

    @Override
    public String toString() {
        return "wait time to : " + new Date(this.timeStamp) + " .";
    }

    private long timeStamp;

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }
}
